package com.wangzhy.financial.service.impl;

import java.util.List;

import com.wangzhy.financial.mapper.DeptJxmbMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wangzhy.financial.domain.DeptJxmb;
import com.wangzhy.financial.service.IDeptJxmbService;

/**
 * 绩效目标Service业务层处理
 *
 * @author wangzhy
 * @date 2021-11-08
 */
@Service
public class DeptJxmbServiceImpl implements IDeptJxmbService
{
    @Autowired
    private DeptJxmbMapper deptJxmbMapper;

    /**
     * 查询绩效目标
     *
     * @param id 绩效目标ID
     * @return 绩效目标
     */
    @Override
    public DeptJxmb selectDeptJxmbById(String id)
    {
        return deptJxmbMapper.selectDeptJxmbById(id);
    }

    /**
     * 查询绩效目标列表
     *
     * @param deptJxmb 绩效目标
     * @return 绩效目标
     */
    @Override
    public List<DeptJxmb> selectDeptJxmbList(DeptJxmb deptJxmb)
    {
        return deptJxmbMapper.selectDeptJxmbList(deptJxmb);
    }

    /**
     * 新增绩效目标
     *
     * @param deptJxmb 绩效目标
     * @return 结果
     */
    @Override
    public int insertDeptJxmb(DeptJxmb deptJxmb) {
                                                                                                                                                                                                                                                                                                                                                                                                                            return deptJxmbMapper.insertDeptJxmb(deptJxmb);
    }

    /**
     * 修改绩效目标
     *
     * @param deptJxmb 绩效目标
     * @return 结果
     */
    @Override
    public int updateDeptJxmb(DeptJxmb deptJxmb) {
                                                                                                                                                                                                                                                                                                                return deptJxmbMapper.updateDeptJxmb(deptJxmb);
    }

    /**
     * 批量删除绩效目标
     *
     * @param ids 需要删除的绩效目标ID
     * @return 结果
     */
    @Override
    public int deleteDeptJxmbByIds(String[] ids)
    {
        return deptJxmbMapper.deleteDeptJxmbByIds(ids);
    }

    /**
     * 删除绩效目标信息
     *
     * @param id 绩效目标ID
     * @return 结果
     */
    @Override
    public int deleteDeptJxmbById(String id)
    {
        return deptJxmbMapper.deleteDeptJxmbById(id);
    }
}
